package com.MLC.service.impl;

import com.MLC.entity.Consultant;
import com.MLC.repository.ConsultantRepository;
import com.MLC.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
     private ConsultantRepository consultantRepository;
    @Override
    public String Login() {

        return "login successfully!";
    }

    @Override
    public String Logout() {
        return null;
    }

    public void saveConsultant(Consultant consultant){
        consultantRepository.save(consultant);
    }
}
